package com.sx.micowell.module.smartDevice.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.sx.micowell.R;
import com.tuya.smart.home.sdk.bean.ConfigProductInfoBean;

import java.util.List;

/**
 * @Author: YY
 * @Time: 2021/9/17
 * @Describe 扫描到的设备列表
 */
public class BleDeviceListAdapter extends BaseQuickAdapter<ConfigProductInfoBean, BaseViewHolder> {

    public BleDeviceListAdapter(List<ConfigProductInfoBean> data) {
        super(R.layout.item_device_search_list, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, ConfigProductInfoBean infoBean) {
        holder.setText(R.id.tv_notices_title, infoBean.getName());
    }
}
